package cc.togetherit.jcrawler.fetch;

import cc.togetherit.jcrawler.checkRepeat.RepeatCheck;
import cc.togetherit.jcrawler.dataPool.CrawlerPool;

public class FetchEngineFactory {

    public static final int XPATH = 0;

    public static AbstractFetchEngine getEngine(int fetchEngine, CrawlerPool<String> downPool, CrawlerPool<FetchRequest> fetchPool, CrawlerPool<FetchRequest> parsePool, RepeatCheck check) {
        if (fetchEngine == XPATH) {

            return new DefaultFetchEngine(downPool, fetchPool, parsePool, check);
        }
        return null;
    }

}
